package com.zhouhong;

/**
 * @ClassName: LinearSearch
 * @Description: 生成数组工具类
 * @Author: zhouhong
 * @Create: 2021-03-28 16:25
 **/

public class ArrayGenerator {

    private ArrayGenerator(){}
    public static Integer[] generatorOrderedArray(int n){
        Integer[] arr = new Integer[n];
        for (int i = 0; i < n; i++) {
            arr[i] = i;
        }
        return arr;
    }

}
